package com.etone.smartAudit.mapper;

import com.etone.smartAudit.domain.CertificatePerson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * <p>
 * 存证单执行人信息  Mapper 接口
 * </p>
 *
 * @author jiayen
 * @since 2021-06-08
 */
@Mapper
public interface CertificatePersonMapper extends BaseMapper<CertificatePerson> {

    /***
     * 分组获取最后执行人
     * @param ids
     * @return
     */
    List<CertificatePerson> getLastListByFileIds(@Param("ids") List<Integer> ids);

    /***
     * 根据文件id获取执行人信息
     * @param fileId
     * @return
     */
    List<CertificatePerson> getListByFileId(@Param("fileId") Integer fileId);
}
